package 考试.meiguihua;

public class Flower {
    private String color;
    private int Price;

    public Flower() {
    }

    public Flower(String color, int Price) {
        this.color = color;
        this.Price = Price;
    }

    /**
     * 获取
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    /**
     * 获取
     * @return Price
     */
    public int getPrice() {
        return Price;
    }

    /**
     * 设置
     * @param Price
     */
    public void setPrice(int Price) {
        this.Price = Price;
    }

    public String toString() {
        return "Flower{color = " + color + ", Price = " + Price + "}";
    }
    public void showInfo(){
        System.out.println("Color"+color);
        System.out.println("Price"+Price);
    }
}
